package com.shmn.gongjiajumain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shmn.common.utils.PageUtils;
import com.shmn.common.utils.Query;

import com.shmn.gongjiajumain.dao.JigModelDao;
import com.shmn.gongjiajumain.entity.JigModelEntity;
import com.shmn.gongjiajumain.service.JigModelService;


@Service("jigModelService")
public class JigModelServiceImpl extends ServiceImpl<JigModelDao, JigModelEntity> implements JigModelService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<JigModelEntity> page = this.page(
                new Query<JigModelEntity>().getPage(params),
                new QueryWrapper<JigModelEntity>()
        );

        return new PageUtils(page);
    }

}